package org.xlh.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.xlh.springboot.service.UserService;

@SpringBootApplication
public class Springboot311AopApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Springboot311AopApplication.class, args);

        UserService bean = run.getBean(UserService.class);
        bean.save(1L, "zhangsan");
        bean.deleteById(1L);

        run.close();
    }

}
